package com.itheima;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;

@ServletComponentScan
@MapperScan("com.itheima.dao")
@SpringBootApplication
@Slf4j
public class ReggieApplication {

    public static void main(String[] args) {
        SpringApplication.run(ReggieApplication.class , args);
        log.debug("========项目启动了byz===========");
        log.info("byz--------------------------------");
        System.out.println("项目启动了");
    }
//    @Bean
//    public static PropertySourcesPlaceholderConfigurer placeholderConfigurer(){
//        PropertySourcesPlaceholderConfigurer c=new PropertySourcesPlaceholderConfigurer();
//        return c;
//    }
}
